package com.pactera.madp.cp.api.vo.dept;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

/**
 * 机构/成员联动展示对象
 *
 * @author zkd
 * @date 2022/3/21 17:02
 */
@Data
@ApiModel(value = "机构成员联动展示对象")
public class DeptEmployeeLinkVO {

    @ApiModelProperty(value = "联动对象列表")
    private List<LinkObject> linkObjects;

    @ApiModelProperty(value = "当前登录用户所在机构的等级,1-总行，2-分行-3-支行")
    private Integer currentLogUserDeptLevel;

    @Data
    @ApiModel(value = "联动对象")
    public static class LinkObject {
        @ApiModelProperty(value = "联动对象id(sys_dept.id或cp_work_employee.id)")
        private Integer objectId;

        @ApiModelProperty(value = "联动对象名称(机构名称或成员名称)")
        private String objectName;

    }
}
